package factory;

import com.bitsinharmony.recognito.Recognito;

/**
 * 单例，应用场景无需保证线程安全
 * Created by Administrator on 2021/4/22.
 */
public class RecogntioFactory {
    private static Recognito recognito;
    private RecogntioFactory(){}


    public static Recognito getRecognito(Float sampleRate){
        if (recognito == null){
            recognito = new Recognito(sampleRate);
        }

        return recognito;
    }

}
